// 保存token
function setToken (value, key = 'token') {
  window.localStorage.setItem(key, value)
}
// 获取token
function getToken (key = 'token') {
  window.localStorage.getItem(key)
}
// 删除token
function removeToken (key = 'token') {
  window.localStorage.removeItem(key)
}
export { setToken, getToken, removeToken }
